#ifndef __PWM_H
#define __PWM_H

#include "stm32f10x.h"

#define PWM_GPIO_PORT   GPIOA
#define PWM_GPIO_PIN    GPIO_Pin_0
#define PWM_GPIO_CLK    RCC_APB2Periph_GPIOA

#define PWM_TIM         TIM2
#define PWM_TIM_CLK     RCC_APB1Periph_TIM2

void PWM_Init(void);
void PWM_SetCompare(uint16_t Compare);
void PWM_SetPrescaler(uint16_t prescaler);

#endif // !__PWM_H